﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using HardwareLibrary.LogLibrary;

namespace HardwareLibrary.SoundLibrary
{
    public class WavLib
    {
        public void PlaySound(String wavFileFullPath)
        {
            try
            {
                if (File.Exists(wavFileFullPath) == true)
                {
                    System.Media.SoundPlayer sp = new System.Media.SoundPlayer(wavFileFullPath);
                    sp.Play();
                }
            }
            catch (Exception ex)
            {
                LogManager.WriteLog(LogFile.Error, ex.Message);
            }
        }
    }
}
